<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<form id="userForm">
  <input type="hidden" name="id" th:value="${user?.id}">
  <div class="form-group row">
    <label for="username" class="col-sm-2 col-form-label">用户名</label>
    <div class="col-sm-10">
      <input type="text" th:value="${user?.username}"
             name="username" class="form-control" id="username"
             placeholder="填写用户名" disabled>
      <div class="invalid-feedback">请填写用户名</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="mobile" class="col-sm-2 col-form-label">电话</label>
    <div class="col-sm-10">
      <input type="text" th:value="${user?.mobile}" name="mobile" class="form-control"
             id="mobile"
             placeholder="请填写电话" required>
      <div class="invalid-feedback">请填写电话</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="roleName" class="col-sm-2 col-form-label">角色</label>
    <div class="col-sm-10">
      <input type="text" th:value="${user?.roleName}" name="roleName" class="form-control"
             id="roleName"
             placeholder="请填写角色" disabled>
      <div class="invalid-feedback">请填写角色</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="mobile" class="col-sm-2 col-form-label">创建时间</label>
    <div class="col-sm-10">
      <input type="text" th:value="${user?.createTime}" name="createTime" class="form-control"
             id="createTime"
             placeholder="请填写创建时间" disabled>
      <div class="invalid-feedback">请填写创建时间</div>
    </div>
  </div>
</form>